home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-21
/
cd_check.zip
/
README
< prev
Wrap
Text File
|
1991-07-06
|
1KB
|
35 lines
CD-Check is a utility to trap a carrier detect on COM1 thru
COM4. There is no warrante expressed or implied. Use at
your own risk. CD-Check is the property of Scott McKnight.
It is free for use in a non-commercial environment. For a
commercial liscense to use CD-Check, send $10:00 to
Scott McKnight
377 Bevill Ave
Blytheville, AR, 72315
FIDO: 1:389/2001
PH: (501) 532-6212 or 5641 (1200-14400, HST/V32)
Instruction for using CD-Check is simple. Type the command:
CD-Check [Port#]
example: CD-Check 1
This example will check COM1 for a carrier detect. If it finds one, it
will exit with errorlevel 0. If no carrier is detected, it will exit
with errorlevel 1.
A simple batch file routine for trapping the errorlevel would go
something like this:
:CD-Check
CD-Check 1
if Errorlevel 1 Goto No-carrier
if Errorlevel 0 Goto Carrier-on
:No-carrier
Goto routine-1, no carrier is detected
:Carrier-on
Goto routine-0, a carrier is detected